package t20220305;

/**
 * @Author: DengJia
 * @Date: 2022/3/5 14:00
 * @Description: 格式化输出
 */

public class SimpleFormat {
    public static void main(String[] args) {
        int i = 9;
        float f = 10.123456F;

        System.out.println("[" + i + ", " + f + "]");
        System.out.format("[%d, %f]\n", i, f);
        System.out.printf("[%d, %f]\n", i, f);

    }
}
